package cn.com.unionlife.hy.system.mapper;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.com.unionlife.hy.system.vo.UserVO;

@Repository("userMapper")
public interface UserMapper {
 
	/**
	 * 获取该用户名VO
	 * @param username
	 * @return
	 */
	public UserVO getByUsername(String username);
	
	public UserVO getById(String id);
	
	public List<UserVO> findByOrg(String id);
	
	public void updateExtUser(@Param("id")String id , @Param("enabled")boolean enabled);
	
	public int countExtUser(String id);
	
	public void insertExtUser(@Param("id")String id ,@Param("enabled")boolean enabled);
	
	public void authorizeOrg(@Param("userId")String userId , @Param("orgIds")String[] orgIds);
	
	public void deleteAllAuthorizedOrg(String id);
}
